// 1.引入组件
import SvgIcon from '@/components/SvgIcon/index.vue'
import Pagination from '@/components/Pagination/index.vue'
// 每个组件都有名字和组件内容.需要是用app.component()注册.
console.log(SvgIcon,Pagination);
const GlobalComponent ={SvgIcon,Pagination};
console.log(Object.keys(GlobalComponent));


export default {
  install(app){
    Object.keys(GlobalComponent).forEach((item)=>{
      app.component(item,GlobalComponent[item]);
    })
  }
}